|
|
Massimo Valentini wrote:
>"Ken" ha scritto
>:
>: Mesh bug report -
>:
>: A mesh object (w/inside_vector used) evaluates properly only when it is a
>: top level object in a CSG operation. The behavior is incorrect when it is a
>: second level object. This bug has been confirmed.
>:
>: POV-Ray for Windows version 3.5.icl.win32, Win 98, Athlon 950, 256meg sdram.
>:
>: Ken Tyler
>:
>
>I Xposted this reply to both p.bugreports and p.programming
>and set the follow-up to p.programming.
>
>
>I would say this is NOT a bug. Well, I'm not entitled to say what's
>a bug and what's not, but I think the behaviour is easily explained.
>
>When you render this scene, a warning is issued saying:
>
>"Patch objects not allowed in intersection"
>
>and given the fact that mesh objects have no inside, what you obtain
>is a difference when the second object is a box, and an intersection
>when it is a mesh. In other words you obtain the same image as with:
>
>//////////////////
>camera { location<-2,3,-5> look_at y*.5 }
>
>light_source { <-5,5,-5> 1 }
>
>default { pigment {red 1} finish { ambient .4 diffuse .6 }}
>
>difference
>{
> box{<-1,-1,-1>,<1,1,1>}
> box{<-.75,-.75,-1.1>,<.75,.75,1.1> pigment{rgb 1}}
> translate x*-1.2
>}
>
>intersection
>{
> box{<-1,-1,-1>,<1,1,1> pigment{rgb 1}}
> box {<-.75,-.75,-1.1>,<.75,.75,1.1>}
> translate x*1.2
>}
>
>intersection
>{
> box { <-1,-1,-1>,<1,1,1> }
> box {<-.75,-.75,-1.1>,<.75,.75,1.1>}
> translate y*2
>}
>//////////////////////
>
If you could confirm that a mesh completely encloses an inner area could you
then find a way to declare it as a solid object? Perhaps use a mesh to
shape an isosurface?
--normdoering
Post a reply to this message
|
|